package com.lagou.mongo;

import com.lagou.mongo.dao.ResumeDAO;
import com.lagou.mongo.po.Resume;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class MongoApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(MongoApplication.class, args);
        ResumeDAO resumeDao = context.getBean("resumeDao",ResumeDAO.class);
        Resume resume = resumeDao.findByName("test2");
        System.out.println(resume);
    }

}
